home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / Papers / C++ Exceptions / µShell / Threads Support / ThreadContext.cp < prev    next >
Encoding:
Text File  |  1996-06-09  |  803 b   |  51 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        ThreadContext.cp
  3.  
  4.     Contains:    An abstract class for a thread context
  5.                 
  6.     Written by: Steve Sisak
  7.     
  8.     Copyright:    © 1995 by Steve Sisak, all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.      
  12.  */
  13.  
  14. #include "ThreadContext.h"
  15. #include "ThreadSupport.h"
  16. #include "Exceptions.h"
  17. #include <OSUtils.h>
  18.  
  19. ThreadContext::ThreadContext()
  20. {
  21. }
  22.  
  23. ThreadContext::~ThreadContext()
  24. {
  25. }
  26.  
  27. void ThreadContext::SwitchIn(void)
  28. {
  29. }
  30.  
  31. void ThreadContext::SwitchOut(void)
  32. {
  33. }
  34.  
  35. void ThreadContext::Terminate(void)
  36. {
  37. }
  38.  
  39. //--------------------------------------------------------------------------------
  40. LinkedList* ThreadContext::GetList()
  41. {
  42.     return &fThread->fContextList;
  43. }
  44.  
  45. //--------------------------------------------------------------------------------
  46. void* ThreadContext::GetObjectPtr()
  47. {
  48.     return this;
  49. }
  50.  
  51.